分享至
1.四捨五入ROUND(183.654,1) => 183.72.千分位符號金額SELECT CONVERT (VARCHAR,CAST(9312.456 AS money),1)1:代表整數取千分位,小數點2位
ROUND(183.654,1)
SELECT CONVERT (VARCHAR,CAST(9312.456 AS money),1)
3.除法的差異
7/3 =>商為27.0/3=>商為2.333333cast(1 as float)*7/3=>2.333333333333
cast(1 as float)*7/3
IT邦幫忙